Page({

    /**
     * 页面的初始数据
     */
    data: {
        height: 0,
        total: 0,
        dataList: [
            {
                arrearsFlag: "0",
                authFlag: "0",
                canBorrowNum: "",
                directFlag: "0",
                goodsId: "20221215102108_0003465532ef4d8406a01",
                goodsImg: "20220518110208_0205751a7f94b54841915@汽油95.jpg",
                goodsMode: "manual",
                goodsName: "车用汽油-95#-国标VIB",
                goodsPrice: 8600,
                goodsProductId: "20221104145623_01370a848a71b49d51b29",
                goodsSaleType: "isnull",
                houseStorageNum: 0,
                label: "车用汽油-95#-国标VIB",
                lockLimit: 30,
                oilHouseId: "20210810141601_6091ef68fa751489570",
                oilHouseName: "江投石油",
                oilHouseNameName: "江投石油",
                originalPrice: 0,
                recommandFlag: "1",
                sellType: "",
                tradeType: "look_up",
                upTime: "2023-01-11T15:06:06.000+0800",
                userFactoryId: "20210810101025_1381446e198fbbfcb41",
                userFactoryName: "江西省江投能源供应链有限公司销售分公司",
                userSupplierId: "20210810101025_1381446e198fbbfcb41",
                userSupplierName: "江西省江投能源供应链有限公司销售分公司",
                value: "20221215102108_0003465532ef4d8406a01",
            },
            {
                arrearsFlag: "0",
                authFlag: "0",
                canBorrowNum: "",
                directFlag: "0",
                goodsId: "20221215102108_0003465532ef4d8406a01",
                goodsImg: "20220518110208_0205751a7f94b54841915@汽油95.jpg",
                goodsMode: "manual",
                goodsName: "车用汽油-95#-国标VIB",
                goodsPrice: 8600,
                goodsProductId: "20221104145623_01370a848a71b49d51b29",
                goodsSaleType: "isnull",
                houseStorageNum: 0,
                label: "车用汽油-95#-国标VIB",
                lockLimit: 30,
                oilHouseId: "20210810141601_6091ef68fa751489570",
                oilHouseName: "江投石油",
                oilHouseNameName: "江投石油",
                originalPrice: 0,
                recommandFlag: "1",
                sellType: "",
                tradeType: "look_up",
                upTime: "2023-01-11T15:06:06.000+0800",
                userFactoryId: "20210810101025_1381446e198fbbfcb41",
                userFactoryName: "江西省江投能源供应链有限公司销售分公司",
                userSupplierId: "20210810101025_1381446e198fbbfcb41",
                userSupplierName: "江西省江投能源供应链有限公司销售分公司",
                value: "20221215102108_0003465532ef4d8406a01",
            },
            {
                arrearsFlag: "0",
                authFlag: "0",
                canBorrowNum: "",
                directFlag: "0",
                goodsId: "20221215102108_0003465532ef4d8406a01",
                goodsImg: "20220518110208_0205751a7f94b54841915@汽油95.jpg",
                goodsMode: "manual",
                goodsName: "车用汽油-95#-国标VIB",
                goodsPrice: 8600,
                goodsProductId: "20221104145623_01370a848a71b49d51b29",
                goodsSaleType: "isnull",
                houseStorageNum: 0,
                label: "车用汽油-95#-国标VIB",
                lockLimit: 30,
                oilHouseId: "20210810141601_6091ef68fa751489570",
                oilHouseName: "江投石油",
                oilHouseNameName: "江投石油",
                originalPrice: 0,
                recommandFlag: "1",
                sellType: "",
                tradeType: "look_up",
                upTime: "2023-01-11T15:06:06.000+0800",
                userFactoryId: "20210810101025_1381446e198fbbfcb41",
                userFactoryName: "江西省江投能源供应链有限公司销售分公司",
                userSupplierId: "20210810101025_1381446e198fbbfcb41",
                userSupplierName: "江西省江投能源供应链有限公司销售分公司",
                value: "20221215102108_0003465532ef4d8406a01",
            }
            
        ],
        payMethod: "",
        params: {
            page: 1,
            limit: 10
        },
        keyword: "",
        firstClassifyId: "",
        modalName: null,
        searchConfig: [ {
            type: "classify",
            name: "油品",
            default: "油品",
            code: "secondClassifyId",
            value: ""
        }, {
            type: "classifyStandard",
            default: "国标",
            name: "国标",
            code: "standardType",
            value: ""
        }, {
            type: "oilProvinceAll",
            default: "油库",
            name: "油库",
            code: "oilHouseId",
            value: ""
        }, {
            type: "dict:trade_type",
            default: "模式",
            name: "模式",
            code: "tradeType",
            value: ""
        } ]
    },
    toDetail(){
        wx.navigateTo({
          url: '/pages/pagesGoods/goods/detail',
        })
    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
    },
    
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {

    },
    
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },
    chooseSeller(e){
        let pages = getCurrentPages();
        let prevPage = pages[pages.length-2];
        prevPage.setData({
            buyerName: e.currentTarget.dataset.item.orgName,
        });
        wx.navigateBack({
          delta: 1,
        })
    },
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})